package com.onesports.intelligent.k12.polarlight.domain.dto.sys;

import com.onesports.framework.kit.common.valid.Length;
import com.onesports.framework.kit.common.valid.NotEmpty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author zengzl
 */
@Data
@ApiModel("个人中心DTO")
public class SchPersonalCenterDTO {

    @ApiModelProperty(value = "手机号",required = true)
    @NotEmpty(message = "手机号不能为空")
    @Length(max = 11,message = "手机号不可超过11位")
    private String phone;

    @ApiModelProperty(value = "姓名",required = true)
    @NotEmpty(message = "姓名不能为空")
    @Length(max = 20,message = "姓名字数不可超过20")
    private String username;

    @ApiModelProperty(value = "性别(1:男  2：女)",required = true)
    @NotEmpty(message = "性别不能为空")
    private String gender;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty(value = "头像")
    private String headUrl;

    @ApiModelProperty("裁判资格证列表")
    private List<StaffCertificateDTO> certificateList;

}
